﻿using System;
using System.ComponentModel;
using Security.Domain;

namespace Security.View.QuickViews.Reports
{
    public class LoginEmployeeQuickReport
    {
        public LoginEmployeeQuickReport(LoginEmployee loginEmployee)
        {
            Login = loginEmployee.Login;
            EmployeeLastname = loginEmployee.Employee.Lastname;
            Expire = loginEmployee.Expire;
            Main = loginEmployee.Main.HasValue && loginEmployee.Main.Value;
        }

        [DisplayName("Имя входа")]
        public string Login { get; set; }
        [DisplayName("Сотрудник")]
        public string EmployeeLastname { get; set; }
        [DisplayName("Действительно до")]
        public DateTime? Expire { get; set; }
        [DisplayName("Основное")]
        public bool Main { get; set; }
    }
}